Restricted Class Declaration (RCD)

Description:

RCD detects classes that cannot be used by their supposed clients. Such classes are:

Incorrect:

public class Property {
    Property(String id) {
        ...
    }

    Object getValue() {
        ...
    }
	
    void setValue(Object val) {
        ...
    }
}

Correct:

public class Property {
    public Property(String id) {
        ...
    }

    public Object getValue() {
        ...
    }
	
    public void setValue(Object val) {
        ...
    }
}